﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Forums/Forums.Master" AutoEventWireup="true"
    CodeBehind="DomainFAQ.aspx.cs" Inherits="ExpertMIS.Forums.DomainFAQ" %>

<%@ Register Src="~/UserControl/ucRecommendExperts.ascx" TagName="ucRecommendExperts"
    TagPrefix="uc1" %>
<%@ Register Src="~/UserControl/ucExpertShort.ascx" TagName="ucExpertShort" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .domainbody
        {
            width: 948px;
            height: auto;
        }
        .domainintroduce
        {
            height: 40px;
        }
        .domainintroduce td
        {
            height: 40px;
        }
        .west
        {
            width: 713px;
            height: 830px;
            float: left;
            text-align: left;
            border: 0px;
            border-top: #208cd4 1px solid;
            border-right: #208cd4 1px solid;
        }
        .east
        {
            width: 230px;
            height: 830px;
            border-top: #208cd4 1px solid;
            border-left: #208cd4 1px solid;
            float: right;
            overflow: hidden;
        }
        .tab-faq
        {
            width: 696px;
        }
        .tab-faq td
        {
            text-align: left;
        }
        .tab-faq a
        {
            width: 535;
            float: left;
        }
        .tab-faq .faq-expert
        {
            width: 50px;
            text-align: right;
            float: right;
        }
        .tab-faq .faq-date
        {
            width: auto;
            float: right;
        }
        .result-grid
        {
            height:760px;
            overflow:hidden;
        }
        .result-paging
        {
            text-align:center;
        }
        input
        {
            border: #cccccc 1px solid;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="frmFAQ" runat="server">
    <div style="height: 5px;">
    </div>
    <div class="domainintroduce">
        <table>
            <tr>
                <td style="width: 8px">
                </td>
                <td style="width: 120px;">
                    <asp:Label ID="lblDomainName" runat="server" Text="DomainName" Font-Size="15px"></asp:Label>
                </td>
                <td style="width: 120px;">
                    <asp:Label ID="lblDomainRemark" runat="server" Text="DomainRemark" Font-Size="15px"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="domainbody">
        <div class="west">
            <table style="text-align: left; border-bottom: #208cd4 1px solid; height: 28px; width: 100%;"
                cellpadding="0" cellspacing="0">
                <tr>
                    <td style="background-color: #208cd4; color: White; width: 98px; font-size: 14px;
                        height: 28px; line-height: 28px; display: inline; text-align: center; font-weight: bold;">
                        常见问题
                    </td>
                    <td style="width: 615px; vertical-align: middle; text-align: center; padding-top: 8px;">
                        <%--<span>搜索关键字</span>
                        <asp:TextBox runat="server" ID="q" Width="400px"></asp:TextBox>
                        <span style="width: 20px; float: right"></span>
                        <asp:Button ID="btnSearch" Text="搜索" runat="server" Width="80px" />--%>
                    </td>
                </tr>
            </table>
            <div class="result-grid">
            <asp:DataList runat="server" ID="dlFAQs" BorderStyle="None" Style="margin-left: 12px;
                margin-right: 5px;" CssClass="tab-faq" 
                onitemdatabound="dlFAQs_ItemDataBound">
                <ItemTemplate>
                    <asp:HyperLink runat="server" ID="hlQuestion" Text='<%# Eval("F_Title") != null ? ExpertMIS.Codes.Utility.CutLongText(Eval("F_Title").ToString(),45) : ""%>'
                        ToolTip='<%# Eval("F_Title") %>' NavigateUrl='<%# "~/Forums/QuestionForm.aspx?oid=" + Eval("F_OID") %>'></asp:HyperLink>
                    <div>
                        <asp:HyperLink runat="server" ID="hlExpert" CssClass="faq-expert"></asp:HyperLink>
                        <asp:Label runat="server" ID="lblDate" CssClass="faq-date"></asp:Label>
                    </div>
                </ItemTemplate>
                <ItemStyle Height="24px" />
            </asp:DataList>
            </div>
            <div class="result-paging">
                <table>
                    <tr>
                        <td>
                            <a href='?oid=<%= Request["OID"] %>&start=1'>【首 页】</a>
                        </td>
                        <td>
                            <a href='?oid=<%= Request["OID"] %>&start=<%= GetPriorPageIndex() %>'>【上一页】</a>
                        </td>
                        <td>
                            <a href='?oid=<%= Request["OID"] %>&start=<%= GetNextPageIndex() %>'>【下一页】</a>
                        </td>
                        <td>
                            <a href='?oid=<%= Request["OID"] %>&start=<%= GetLastPageIndex() %>'>【尾 页】</a>
                        </td>
                        <td>
                            【页次
                            <%= GetPageIndex() %>
                            】
                        </td>
                        <td>
                            【共
                            <%= GetRecordCount() %>
                            条】
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="east">
            <table style="text-align: left; border-bottom: #208cd4 1px solid; height: 28px; width: 100%;"
                cellpadding="0" cellspacing="0">
                <tr>
                    <td style="background-color: #208cd4; color: White; width: 98px; font-size: 14px;
                        height: 28px; line-height: 28px; display: inline; text-align: center; font-weight: bold;">
                        推荐专家
                    </td>
                    <td style="width: 132px">
                    </td>
                </tr>
            </table>
            <asp:DataList runat="server" ID="dlRecommendExperts" OnItemDataBound="dlRecommendExperts_ItemDataBound"
                Style="min-height: 400px;">
                <ItemTemplate>
                    <uc2:ucExpertShort ID="ucExpertShort1" runat="server" />
                </ItemTemplate>
                <FooterTemplate>
                    <a href='ExpertList.aspx?oid=<%= Request["oid"] %>'><span style="font-weight: bold;">
                        更多</span></a>
                </FooterTemplate>
                <FooterStyle VerticalAlign="Bottom" HorizontalAlign="Right" Height="30px" />
            </asp:DataList>
        </div>
    </div>
    </form>
</asp:Content>
